{*******************************************************}
{                                                       }
{       DelphiOnRails                                   }
{                                                       }
{       Copyright (C) 2012 AllanGomes                   }
{                                                       }
{*******************************************************}

program DelphiOnRailsServer;
{$APPTYPE GUI}

uses
  System.Classes,
  Data.DB,
  Vcl.Forms,
  Web.WebReq,
  IdHTTPWebBrokerBridge,
  MainServer in 'MainServer.pas' {frmMainServer},
  WebModule in 'WebModule.pas' {WebModule1: TWebModule},
  Clientes.Controller in 'Controllers\Clientes.Controller.pas',
  Cliente.Model in 'Models\Cliente.Model.pas',
  ConnectionDialog in 'ConnectionDialog.pas' {frmConnectionDialog},
  DBConnection in 'DBConnection.pas',
  SqlMonitor in 'SqlMonitor.pas' {FrmSqlMonitor};

{$R *.res}

begin
  if WebRequestHandler <> nil then
    WebRequestHandler.WebModuleClass := WebModuleClass;
  Application.Initialize;
  Application.CreateForm(TfrmMainServer, frmMainServer);
  Application.Run;
end.
